FROM python:latest

WORKDIR /data

VOLUME ["/data"]

COPY . /app

ENV PIP_INDEX_URL=http://mirrors.cloud.aliyuncs.com/pypi/simple \
    PIP_TRUSTED_HOST=mirrors.cloud.aliyuncs.com

RUN pip install --no-cache-dir -r /app/requirements.txt

ENTRYPOINT ["python", "/app/main.py"]

CMD ["input.pdf", "--font_size", "10", "--font_path", "/app/fonts/Senkita.ttf"]